Skip to content

PICARD-3235: fingerprint column shows both icon and text, and doesn't honor fixed size#3100

Merged
phw merged 2 commits intometabrainz:masterfrom
zas:PICARD-3235-fingerprint_column
Mar 20, 2026
Merged

PICARD-3235: fingerprint column shows both icon and text, and doesn't honor fixed size#3100
phw merged 2 commits intometabrainz:masterfrom
zas:PICARD-3235-fingerprint_column

Conversation

@zas
Copy link
Collaborator

@zas zas commented Mar 19, 2026

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

IconColumn has a fixed size and should only display an icon, though it displays the title, enlarging the column.

Solution

Instead of displaying the text, display a tooltip.

Also fix another tricky issue when such column (fixed size) is displayed as last section: it is stretched as all columns in this position, but when losing its position, because a new column is added for example, it keeps its enlarged size and it cannot be resized (because fixed-size column). So workaround this by re-applying the fixed size on such columns.

AI Usage

In accordance with the AI use policy portion of the MetaBrainz Contribution Guidelines, the level of AI/LLM use in the development of this Pull Request is:

  • No AI/LLM use
  • Minimal use (e.g. autocompletion)
  • Moderate use (e.g. suggestions regarding code fragments)
  • Significant use (e.g. code structure, tests development, etc.)
  • Primarily AI developed
  • Other (please specify below)

Action

Additional actions required:

  • Update Picard documentation (please include a reference to this PR)
  • Other (please specify below)

zas added 2 commits March 19, 2026 21:51
When a fixed size column is displayed at the end, it is enlarged because stretchLastSection is set to True for last column.
We can't do much about that, but that's not really an issue.
Though when a new column is added, it doesn't return to its fixed size, and since it cannot be resized that's a problem.

So to fix that, after _refresh_header_labels updates the column count and syncs visibility, it now re-applies the fixed width for non-resizeable columns. This handles the case
where the fingerprint column was stretched by stretchLastSection (because it was last), and then a new column is added after it — the fingerprint column snaps back to its
18px icon size.
@zas zas requested review from phw and rdswift March 19, 2026 21:15
@zas zas changed the title Picard-3235: fingerprint column shows both icon and text, and doesn't honor fixed size PICARD-3235: fingerprint column shows both icon and text, and doesn't honor fixed size Mar 19, 2026
Copy link
Member

@phw phw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. I tested and it works as expected. Code looks good.

@phw phw merged commit 3e2db91 into metabrainz:master Mar 20, 2026
51 checks passed
@zas zas deleted the PICARD-3235-fingerprint_column branch March 20, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants